import { defineComponent } from "vue";

export default defineComponent({
  props: {
    msg: {
      type: String,
      required: true,
    },
  },
  setup(props) {
    return () => (
      <div className="hello">
        Demo.tsx
        <h1>{props.msg}</h1>
        <p>This is a TSX component in Vue 2</p>
      </div>
    );
  },
});
